<template>
	<view>
		<view class="u-m-30">
			请输入您在使用过程中的建议和反馈
		</view>
		<view class="u-m-30 u-p-20 " style="background-color: #fff;width: 85%;">
			<textarea class="" style="width: 100%;" maxlength="500" v-model="information" placeholder="请输入建议与反馈,最多500字" ></textarea>
		</view>
		<view @click="feed" class="  flex-center">
			<text class="u-radius-10 submit">
				提交
			</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				information:''
			};
		},
		methods:{
			feed(){
				this.$api.post('/assistant/xFeedback/create',{
					information:this.information
				}).then(res=>{
					this.$toast(res.message)
					setTimeout(()=>{
						uni.navigateBack()
					},1000)
				})
			},
		}
		
	}
</script>

<style lang="scss">
.submit{
	background-color: $main-color;
	color: #fff;
	padding: 20rpx 150rpx;
}
</style>
